import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { SharedModule } from '@shared/shared.module';

import { RandomUserService } from './randomUser.service';
import { EducationalComponent } from './educational.component';
import { TeacherComponent } from './teacher/teacher.component';
import { ClassComponent } from './class/class.component';
import { StudentComponent } from './student/student.component';
import { ClassManagementComponent } from './class-management/class-management.component';
import { CourseManagementComponent } from './course-management/course-management.component';

const routes: Routes = [
    { path: '', component: EducationalComponent },
];

@NgModule({
    imports: [
        SharedModule,
        RouterModule.forChild(routes)
    ],
    providers: [ RandomUserService ],
    declarations: [
        EducationalComponent,
        TeacherComponent,
        ClassComponent,
        StudentComponent,
        ClassManagementComponent,
        CourseManagementComponent
    ],
    exports: [
        RouterModule
    ],
    entryComponents: [

    ]
})
export class EducationalModule { }
